import 'package:go_router/go_router.dart';
import 'package:shouyin_app/common/base/base.dart';
import 'package:shouyin_app/common/base/base_get_controller.dart';
import 'package:shouyin_app/common/router/app_pages.dart';

class SplashController extends BaseGetController{

  final BuildContext context;

  SplashController({required this.context});


  @override
  void onInit() {
    super.onInit();

  }

  @override
  void onReady() {
    super.onReady();
    _goHomePage();
  }

  void _goHomePage() {
    // context.goNamed(AppPages.home);
    context.goNamed(AppPages.demo);
  }
}